package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.pojos.ApArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Du leilei
 * @version 1.0
 * @Description
 * @createTime 2023年09月04日 11:24:00
 */
@Mapper
public interface ApArticleMapper extends BaseMapper<ApArticle> {
    /**
     * app文章列表
     * @param homeDto
     * @return
     */
    List<ApArticle> loadArticleList(@Param("homeDto") ArticleHomeDto homeDto,
                                    @Param("type") int type);
}
